COMPONENT_DIR = com_kaltura/
PACKAGE_BASE_NAME = com_kaltura-

TAR_CMD = tar cvzf
TARGET_DIR = dist/
TAR_OPTIONS = --exclude-vcs

RMDIR = rm -R

DATE = $(shell date +%m%d%Y)
SVN_REV = $(word 2, $(shell svn info|grep Revision))

all:
	mkdir -p $(TARGET_DIR);
	echo $(SVN_REV:3);
	$(TAR_CMD) $(TARGET_DIR)$(PACKAGE_BASE_NAME)rev$(SVN_REV)-$(DATE).tar.gz $(COMPONENT_DIR) $(TAR_OPTIONS);

clean:
	$(RMDIR) $(TARGET_DIR)
